Skip to content

Jasssonpet/nsexception#489

Closed
jasssonpet wants to merge 2 commits intomasterfrom
jasssonpet/nsexception
Closed

Jasssonpet/nsexception#489
jasssonpet wants to merge 2 commits intomasterfrom
jasssonpet/nsexception

Conversation

@jasssonpet
Copy link
Copy Markdown
Contributor

Related to: #434.

The following code:

global.__onUncaughtError = function(error) {
    console.log(error.stack);
    console.log(error.nativeException);
};

functionThrowsException();

shows this nice log:

CONSOLE LOG app/index.js:2:16: functionThrowsException@[native code]
global code@app/index.js:6:24
CONSOLE LOG app/index.js:3:16: Exception message
***** Fatal JavaScript exception - application has been terminated. *****
Native stack trace:
1   0xd12e2 NativeScript::reportFatalErrorBeforeShutdown(JSC::ExecState*, JSC::Exception*)
2   0x830a0 NativeScript::FFICall::call(JSC::ExecState*)
3   0x8db9e1 JSC::LLInt::handleHostCall(JSC::ExecState*, JSC::Instruction*, JSC::JSValue, JSC::CodeSpecializationKind)
4   0x8dd06d JSC::LLInt::setUpCall(JSC::ExecState*, JSC::Instruction*, JSC::CodeSpecializationKind, JSC::JSValue, JSC::LLIntCallLinkInfo*)
5   0x8dcfb8 JSC::LLInt::genericCall(JSC::ExecState*, JSC::Instruction*, JSC::CodeSpecializationKind)
6   0x8d900f llint_slow_path_call
7   0x8e41f7 llint_entry
8   0x8df08c vmEntryToJavaScript
9   0x853f6d JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*)
10  0x80d611 JSC::Interpreter::execute(JSC::ProgramExecutable*, JSC::ExecState*, JSC::JSObject*)
11  0xa8c831 JSC::evaluate(JSC::ExecState*, JSC::SourceCode const&, JSC::JSValue, WTF::NakedPtr<JSC::Exception>&)
12  0x26e00f JSEvaluateScript
13  0x82304 main
14  0x5771a21 start
15  0x1
JavaScript stack trace:
1   functionThrowsException@app/index.js:6:24
2   global code@app/index.js:6:24
JavaScript error:
app/index.js:6:24: JS ERROR NativeException: Exception message

@jasssonpet jasssonpet added this to the 1.6.0 milestone Jan 25, 2016
@jasssonpet jasssonpet self-assigned this Jan 25, 2016
@jasssonpet jasssonpet force-pushed the jasssonpet/nsexception branch from 4b4fd02 to 4ede9b7 Compare January 25, 2016 13:37
@jasssonpet
Copy link
Copy Markdown
Contributor Author

Closing in favor of #500.

@jasssonpet jasssonpet closed this Feb 3, 2016
@jasssonpet jasssonpet deleted the jasssonpet/nsexception branch February 11, 2016 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant